package com.spring.aop.annotation;

import static org.junit.Assert.*;

import javax.annotation.Resource;

import org.aspectj.lang.annotation.AfterThrowing;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;



@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class AopAnnotationTest {
	
	@Resource(name="orderDao")
	private OrderDao  orderDao;

	@Test
	public void test() {
		orderDao.find();
		orderDao.save();
		orderDao.update();
		orderDao.delete();
	}
	
	
}
